import React, { Component } from 'react'
import {
	View,
	Text,
	StyleSheet,
	Dimensions,
} from 'react-native'
const {width,height}  = Dimensions.get('window')
export default class Popup extends Component{

	constructor(props){
		super(props)
	}
	render(){
		const {
			popup
		} = this.props
		if(!popup || (!popup.title && !popup.content)){
			return null
		}
		return (
			<View >
				<Text>{popup.title}</Text>
				<Text>{popup.content}</Text>
			</View>
		)
	}

}